<template>
	<view class="main">
		<view class="head">
			<view class="title">总曝光（次）</view>
			<view class="total-money">20.32</view>
			<view class="red-buzhu">
				<view class="red-buzhu-li">
					<view class="name">年曝光（次）</view>
					<view class="mount">125</view>
				</view>
				<view class="red-buzhu-li">
					<view class="name">月曝光（次）</view>
					<view class="mount">12565.00</view>
				</view>
				<view class="red-buzhu-li">
					<view class="name">日曝光（次）</view>
					<view class="mount">12565.00</view>
				</view>
			</view>
		</view>
		<view class="tab-box">
			<view class="tab-li" v-for="(item,index) in tabList" :key="index" :class="{'active':tabCur==index}" @tap="tabChange(index)">{{item.name}}</view>
		</view>
		<view class="list-box">
			<view class="li">
				<view class="li-top">
					<view class="li-top-left">
						<view class="sculpture">
						<u--image  :src="shopMallImgUrl+'person.png'" width="70rpx" height="70rpx"></u--image>
					</view><view class="name">模拟卡卡卡</view></view>
					<view class="li-top-right">2023/10/12  12:20:30</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	import {shopMallImgUrl} from "@/common/config.js"
	export default {
		data() {
			return {
				shopMallImgUrl:shopMallImgUrl,
				tabList:[{name:"会员"},{name:"非会员"}],
				tabCur:0
			}
		},
		onLoad() {

		},
		onShow() {

		},
		methods: {
          tabChange(i){
			  this.tabCur=i;
		  }
		}
	}
</script>

<style lang="scss">
	.main {
		// background-color: #f7f7f7;
		// height: calc(100vh - 44px);
	}
	.head{
		margin-left: 30rpx;
		margin-right: 30rpx;
		background: linear-gradient(to right,#00A8FF,#02DDB6);
		border-radius: 20rpx;
		color: #fff;
		padding-bottom: 20rpx;
		box-shadow: #beeef9 0 18rpx 16rpx;
		.title{
			font-size: 24rpx;
			text-align: center;
			padding-top: 20rpx;
		}
		.total-money{
			text-align: center;
			font-size: 72rpx;
			font-weight: bold;
		}
		.red-buzhu{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			margin-top: 30rpx;
			.red-buzhu-li{
				width: 100%;
				text-align: center;
				.name{
					font-size: 24rpx;
				}
				.mount{
					font-size: 48rpx;
				}
			}
			.red-buzhu-li:nth-child(1),.red-buzhu-li:nth-child(2){
				position: relative;
			}
			.red-buzhu-li:nth-child(1):after{
				display: block;
				content: "";
				position: absolute;
				width: 2rpx;
				height: 70rpx;
				background-color: #fff;
				right: 0;
				top:12rpx;
			}
			.red-buzhu-li:nth-child(2):after{
				display: block;
				content: "";
				position: absolute;
				width: 2rpx;
				height: 70rpx;
				background-color: #fff;
				right: 0;
				top:12rpx;
			}
		}
	}
	.tab-box{
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		margin-left: 30rpx;
		margin-right: 30rpx;
		border-bottom: 2rpx solid #F6F5F5;
		margin-top: 60rpx;
		.tab-li{
			padding-left: 20rpx;
			padding-right: 20rpx;
			padding-top: 20rpx;
			padding-bottom: 20rpx;
			font-size: 30rpx;
		}
		.active{
			font-size: 30rpx;
			font-weight: bold;
			color: #333333;
		}
		.active:after{
			display: block;
			content: "";
			height: 4rpx;
			width: 50rpx;
			background-color: #FEBF00;
		}
	}
	.list-box{
		padding-left: 30rpx;
		padding-right: 30rpx;
		margin-top: 40rpx;
		.li{
			
			padding-top: 20rpx;
			padding-bottom: 20rpx;
			border: 2rpx solid #E5E5E5;
			border-radius: 20rpx;
			padding-left:20rpx;
			padding-right: 20rpx;
			font-size: 30rpx;
			color: #333333;
			margin-bottom: 30rpx;
			.li-top{
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				
				.li-top-left{
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					.name{
						line-height: 70rpx;
					}
					.sculpture{
						margin-right: 10rpx;
					}
				}
				.li-top-right{
					line-height: 70rpx;
				}
			}
			
		}
	}
</style>